package com.hiyee.platform.factory;

import java.util.Map;

/**
 * 创建场景处理工厂类，获取处理类实例
 *
 * @author WangBin
 */
public class RabbitMqHandleFactory {

    // 处理 excel
    public static final String UPLOAD_HANDLE  = "UPLOAD";

    public static IRabbitMqHandle getHandle(Map message) {
        switch (message.get("scene").toString()) {
            case UPLOAD_HANDLE:
                return new RabbitMqExcelHandle(message);
            default:
                break;
        }

        return null;
    }
}
